import { FC, useEffect } from 'react';

export const useResizeChange = (props: any) => {
  useEffect(() => {
    // console.log('useResizeChange', props);
    const fun = props;
    window.addEventListener('resize', fun);
    return () => {
      window.removeEventListener('resize', fun);
    };
  }, []);
  return [];
};
